import * as types from "./types"
import { Commit, Dispatch, Mutation, MutationTree } from "vuex"
import { State } from "../index"
const mutations: MutationTree<State> = {
  [types.SET_CHART_ID_NUM.key](state) {
    state.chartIdNum += 1
  },
  setToken(state, payload) {
    state.token = payload;
  },
  setId(state,payload){
    state.id = payload
  },
  setUserInfo(state,payload){
    state.userInfo = payload
  }
}
export default mutations
